<?php
 header("Content-Type: text/html; charset=utf-8"); 
 include("conn.php");
 include("head.php");
  $SQL="SELECT * FROM `message` order by id desc";
  $query=mysql_query($SQL);
  while($row=mysql_fetch_array($query)){
?>

<table width=500 border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#add3ef">
  <tr bgcolor="#eff3ff">
  <td>标题:<?php 
  echo $row['title'];
  ?> 
  用户:<?php echo $row['user'];
  ?></td>
  </tr>
  <tr bgColor="#ffffff">
  <td>内容:<?php
  echo htmtocode($row['content']);
  ?></td>
  </tr>
</table>
<?php 
}
?>